<%@ page isELIgnored="false" %><%@ page session="false" %><%@ page contentType="text/xml; charset=UTF-8" %><%@ taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core" %><%@ taglib prefix="fmt" uri="http://java.sun.com/jsp/jstl/fmt" %><%@ taglib prefix="spring" uri="http://www.springframework.org/tags/spring" %><%@ page pageEncoding="UTF-8"%><?xml version="1.0"?>
<rss version="2.0">
<channel>
  <title>Квартиры на Хату.бы</title>
  <link>http://www.hatu.by/</link>
  <c:set var="incity">
    <spring:message code="label.city.in.${city}" />
  </c:set>
  <description>Снять квартиру в ${incity}</description>
  <webMaster>support@hatu.by</webMaster>
<c:forEach var="flatAd" items="${flatAds}" varStatus="status">
<c:if test="${not empty flatAd}">
  <item>
    <title>Сдам квартиру по адресу <spring:message code="label.city.${flatAd.city}" />, <c:out value="${flatAd.street}"/><c:if test="${not empty flatAd.building}">, <c:out value="${flatAd.building}"/></c:if></title>
    <link>http://www<c:if test="${city != 'minsk'}">.${city}</c:if>.hatu.by/ad/details/${flatAd.id}/view.do?utm_medium=rss</link>
    <description><![CDATA[<c:if test="${not empty flatAd.flatImages}">
        <img src="http://www.hatu.by/ad/image/serve/thumbnail.do?flatImageId=${flatAd.flatImages[0].id}"/>
      </c:if><c:if test="${not empty flatAd.description}"><c:out value="${flatAd.description}"/></c:if>]]></description>
    <pubDate><fmt:formatDate value="${flatAd.lastPublishingDate}" pattern="dd.MM.yyyy"/></pubDate>    
  </item></c:if></c:forEach>
</channel>
</rss>